<template>
  <div> AA <button @click="btn">按钮111</button>
  </div>
</template>
<script>
import bus from './bus'
export default {
  data() {
    return {
      aStr: "aaa数据"
    }
  },
  methods: {
    promiseFn() {
      return new Promise((res, rej) => {
        res('aaaa');
      })
    },
    async btn() {
      const list = await this.promiseFn();
      bus.$emit("changeaStr", this.aStr);
    }
  }
}
</script>